function DateFromTimestamp (timestamp) {
  const date = new Date(timestamp * 1000)

  const year = date.getFullYear()
  const day = date.getDate()
  const month = date.getMonth()

  const dateStr = `${year}/${month + 1}/${day} ${date.getHours()}:${date.getMinutes()}`

  return dateStr
}

export default DateFromTimestamp
